package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.vo.sc.ScFarawayInfoPageVo;
import com.cloudkinto.entity.ScFarawayInfoRuleDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hua
 * @since 2024-11-05
 */
@Mapper
public interface ScFarawayInfoRuleDao extends BaseMapper<ScFarawayInfoRuleDo> {
    IPage<ScFarawayInfoPageVo> list(@Param("page") IPage<ScFarawayInfoPageVo> page, @Param("map") Map<String, Object> map);

    List<ScFarawayInfoPageVo> list(@Param("map") Map<String, Object> map);

    int updateDelete(Long id, Long userId);

    int updateDeleteByFarId(Long farawayId, Long userId);


}
